Package-level declarations

Types

Link copied to clipboard
data class Story(val id: Int, val name: String, val group: String, val code: String, val content: @Composable Story.() -> Unit)
Link copied to clipboard
class StoryDelegate(content: @Composable Story.() -> Unit, group: String = "", code: String = "")
Link copied to clipboard
class StoryListParameterDelegate<T>(story: Story, type: KClass<*>, list: List<T>, defaultValueIndex: Int, label: String? = null)
Link copied to clipboard
class StoryParameter<T>(val name: String, val type: KClass<*>, val values: List<*>?, val label: String?, val state: MutableState<T>)
Link copied to clipboard
class StoryParameterDelegate<T>(story: Story, type: KClass<*>, defaultValue: T, label: String? = null)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> previewParameter(defaultValue: T): StoryParameterDelegate<T>
inline fun <T : Enum<T>> previewParameter(defaultValue: T, label: String? = null): StoryListParameterDelegate<T>
inline fun <T> previewParameter(values: List<T>, defaultValueIndex: Int = 0, label: String? = null): StoryListParameterDelegate<T>
Link copied to clipboard
inline fun story(code: String = "", group: String = "", crossinline content: @Composable Story.() -> Unit): StoryDelegate